// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import {getRouterData} from './router'
import Vant from 'vant';
import '../build/rem.js';
import 'vant/lib/index.css';
import "./assets/style/reset.css";
import 'iview/dist/styles/iview.css';
import axios from 'axios'
import VueAxios from 'vue-axios'
import animated from 'animate.css'
import Qs from 'qs'
// import 'vue-ydui/dist/ydui.base.css';
import {Affix} from 'iview';
import {CountDown} from 'vue-ydui/dist/lib.rem/countdown';
/* 使用px：import {CountDown} from 'vue-ydui/dist/lib.px/countdown'; */
//import 'jquery'
import cookie from "@/assets/jquery.cookie.js";

Vue.component(CountDown.name, CountDown);
Vue.prototype.$http = axios;
Vue.prototype.Qs = Qs;
Vue.use(cookie)
// Vue.prototype.baseUrl = 'http://192.168.31.96:8080/paotui'
// Vue.prototype.baseUrl = 'http://wqnm.free.idcfengye.com/paotui'
// Vue.prototype.baseUrl = 'http://wqnm.free.idcfengye.com/paotui'
//Vue.prototype.baseUrl = 'http://47.105.79.18/paotui'
// Vue.prototype.baseUrl = 'http://localhost:8080/'
 Vue.prototype.baseUrl = 'http://hbtianshou.com/paotui'

Vue.component('Affix', Affix);


Vue.use(animated)
Vue.use(VueAxios, axios)
// Vue.use(iView);

Vue.use(Affix);
Vue.use(Qs);
Vue.use(Vant);
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: getRouterData(),
  components: {App},
  template: '<App/>'
})
